package com.example.bishe.demos.web;

//例子：
//public class LoginInterceptor extends HandlerInterceptor {
///**
//*在请求处理之前进行调用(controller方法调用之前)
//*/
//    @Override
//    public boolean preHandle(HttpservletRequest reguest, HttpservletResponse response, object handler)
//    throws Exception {
//        if(条件){
//            system.out.printin("通过”;
//            return true;
//        }else {
//            system.out.printin("不通过");
//            return false;
//        }
//    }
//}




//拦截器注册（新建java类）:（包名称可为:WebConfig)
//@configuration
//public class Webconfigurer implements WebMvcconfigurer {
//    @override
//    public void addInterceptors(InterceptorRegistry registry){
//        registry.addInterceptor( new LoginInterceptor())    后面为非必须.addPathPatterns("/user/**")
//    }
//}

public class 拦截器 {

}


